package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TUser;
import com.bootdo.project.dao.TUserMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TUserService {

	@Autowired
    private TUserMapper tUserMapper;
    
    public int deleteByPrimaryKey(Long id){
        return tUserMapper.deleteByPrimaryKey(id);
    }

    public int insert(TUser record){
        return tUserMapper.insert(record);
    }

    public int insertSelective(TUser record){
        return tUserMapper.insertSelective(record);
    }

    public TUser selectByPrimaryKey(Long id){
        return tUserMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TUser record){
        return tUserMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TUser record){
        return tUserMapper.updateByPrimaryKey(record);
    }

    public List<TUser> selectByCondition(TUser record){
        return tUserMapper.selectByCondition(record);
    }

    public List<TUser> selectAll(){
        return tUserMapper.selectAll();
    }

    public List<TUser> selectByPage(Page<TUser> page){
        return tUserMapper.selectByPage(page);
    }

    public Integer count(TUser record){
        return tUserMapper.count(record);
    }

    public int deleteByCondition(TUser record){
        return tUserMapper.deleteByCondition(record);
    }

}
